]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Update more-docs to look more like more-apps
authorFlorian Müllner <fmuellner@src.gnome.org>
Wed, 10 Mar 2010 15:54:58 +0000 (16:54 +0100)
committerFlorian Müllner <fmuellner@src.gnome.org>
Tue, 16 Mar 2010 21:22:05 +0000 (22:22 +0100)
Disable horizontal scrolling and remove the close button. Update
the CSS to match more-apps.

https://bugzilla.gnome.org/show_bug.cgi?id=612452

data/theme/gnome-shell.css
js/ui/dash.js
js/ui/genericDisplay.js

index ce6b1a9c8e18c54ff8f1e906065b335dc5f68003..4068a27b37529eb1da314414c31fcfb8e37d1c76 100644 (file)
@@ -373,16 +373,11 @@ StTooltip {
 }
 
 .dash-pane {
-    background-color: rgba(0,0,0,0.95);
-    border: 1px solid #262626;
-    padding: 4px;
-    spacing: 4px;
-}
-
-.dash-pane-close {
-    background-image: url("close.svg");
-    width: 16px;
-    height: 16px;
+    border-radius: 10px;
+    background-color: #111111;
+    border: 2px solid #868686;
+    color: #ffffff;
+    padding: 30px 10px 10px 20px;
 }
 
 .dash-search-section-header {
index cb80d4a365e83a167e3411a24ec26625a8ba742a..3d2d7e9287691bb5e287bf3b59ab6d786857e0ba 100644 (file)
@@ -67,13 +67,8 @@ Pane.prototype = {
 
         let chromeTop = new St.BoxLayout();
 
-        let closeIcon = new St.Button({ style_class: "dash-pane-close" });
-        closeIcon.connect('clicked', Lang.bind(this, function (b, e) {
-            this.close();
-        }));
         let dummy = new St.Bin();
         chromeTop.add(dummy, { expand: true });
-        chromeTop.add(closeIcon, { x_align: St.Align.END });
         this.actor.add(chromeTop);
 
         this.content = new St.BoxLayout({ vertical: true });
index f275bf253a24f2eabe4737d94237f32eb0f01cd7..102c681b47b5ce03d986d57196d9af79abfcdc19 100644 (file)
@@ -257,13 +257,15 @@ GenericDisplay.prototype = {
 
         if (disableVScrolling) {
             this.actor = this._list = new Shell.OverflowList({ spacing: 6,
-                                                                 item_height: 50 });
+                                                               item_height: 50 });
         } else {
-            this.actor = new St.ScrollView({ x_fill: true, y_fill: true });
-            this.actor.get_hscroll_bar().hide();
+            this.actor = new St.ScrollView({ x_fill: true,
+                                             y_fill: false,
+                                             vshadows: true });
             this._list = new St.BoxLayout({ style_class: 'generic-display-container',
                                              vertical: true });
             this.actor.add_actor(this._list);
+            this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
         }
 
         this._pendingRedisplay = RedisplayFlags.NONE;